package com.jdzy.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jdzy.model.common.vos.ResultA;
import com.jdzy.model.student.dtos.PlanQueryDto;
import com.jdzy.model.student.pojos.Plan;
import com.jdzy.model.student.pojos.PlanType;
import com.jdzy.model.student.vos.PlanSubmitVo;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;

public interface PlanService extends IService<Plan> {


    ResultA<List<PlanQueryDto>> findPlansByStudentIdAndTypeAndTime(String stuId, PlanType planType, Date startTime, Date endTime);

    void saveOrUpdatePlan(PlanSubmitVo planSubmitVo);

    boolean signPlan(String stuId, Long planId);

    List<String> getSignDates(String stuId);

    void exportData(HttpServletResponse response);

    void sendReminderEmails();
}
